
/**
 * The Application's header
 */
qx.Class.define("HersPOS.ToolBar",
{
  extend : qx.ui.toolbar.ToolBar,

  construct : function()
  {
    this.base(arguments);

    //   default_font= new qx.bom.Font(12, ["Verdana", "sans-serif"])
    //     this.Height("20%")
    //   this.setHeight(Math.floor(qx.bom.Viewport.getHeight() * 0.01));
    this.modes_part = new qx.ui.toolbar.Part();
    var dash_rad_button = new qx.ui.toolbar.RadioButton(this.tr("Main Board"), "HersPOS/qx/icon/Oxygen/22/apps/office-address-book.png");
    var items_admin_rad_btn = new qx.ui.toolbar.RadioButton(this.tr("Items Administration"), "HersPOS/qx/icon/Oxygen/22/actions/system-run.png");
    var view_results_rad_btn = new qx.ui.toolbar.RadioButton(this.tr("Review"), "HersPOS/qx/icon/Oxygen/22/status/image-loading.png");
    var radio_group = new qx.ui.form.RadioGroup(dash_rad_button, items_admin_rad_btn, view_results_rad_btn);
    var new_case_btn = new qx.ui.toolbar.Button(this.tr("Create New Case"), "HersPOS/qx/icon/Oxygen/22/actions/folder-new.png");
    this.login_part = new qx.ui.toolbar.Part();

    var login_lbl = new qx.ui.basic.Label("Authentication :").set({ alignY : "middle" });

    var username_txt = new qx.ui.form.TextField().set(
    {
      placeholder : "Username",
      alignY      : "middle"
    });

    var password_pwd = new qx.ui.form.PasswordField().set(
    {
      placeholder : "Password",
      alignY      : "middle"
    });

    var login_btn = new qx.ui.toolbar.Button("Login", "HersPOS/qx/icon/Oxygen/22/status/dialog-password.png");

    this.modes_part.add(dash_rad_button);
    this.modes_part.add(items_admin_rad_btn);
    this.modes_part.add(view_results_rad_btn);

    this.login_part.add(login_lbl);
    this.login_part.add(username_txt);
    this.login_part.add(password_pwd);
    this.login_part.add(login_btn);

    this.add(this.modes_part);
    this.addSpacer();
    this.add(this.login_part);
  }
});